<?php
class ArrayUtils {
	
	public static function getIdsArray($objectsList)
	{
		$out = array();
		
		if (!$objectsList)
			return $out;
		
		Assert::isInstance(
			current($objectsList), 'Identifiable',
			'only identifiable lists accepted'
		);
		
		foreach ($objectsList as $object)
			$out[] = $object->getId();
		
		return $out;
	}
}
?>